//
//  env.h
//  airfight
//
//  Created by aaron more on 12-8-20.
//  Copyright (c) 2012年 moonriver. All rights reserved.
//

#ifndef airfight_env_h
#define airfight_env_h


#define CHANGE_PROFILE_NOTIFICATION "change_profile"
#define REDRAW_BULLET_CONTACT_NOTIFICATION "redraw_bullet_contact"
#define REDRAW_BULLET_OUTBOUND_NOTIFICATION "redraw_bullet_outbound"
#define ENEMY_EXPLOSION_NOTIFICATION  "enemy_explosion"
#define PLAYER_EXPLOSION_NOTIFICATION  "player_explosion"
#define DESTROY_BULLET_NOTIFICATION  "destroy_bullet"
#define DESTROY_BONUS_NOTIFICATION  "destroy_bonus"
#define PAYOFF_SCENEN_NOTIFICATION  "payoff_scene"
#define PLAYERBULLET_EXPLOSION_ANIMATION_NOTIFICATION  "playerbullet_explosion_animation"


enum
{
    BASECONSTRUCTION_SCENE = 0,
    FIGHTERUPGRADE_SCENE,
    BATTLE_SCENE,
    RANDOM_BATTLE_SCENE,
};

enum ENTITY_DEPTH
{
    FIGHTEREXPLOSION_DEPTH = 0,
    BULLET_DEPTH,
    ENEMY_DEPTH,
    PLAYER_DEPTH,
    BULLETEXPLOSION_DEPTH,
    BONUS_DEPTH
};

enum Box2d_Filters
{
    FILTER_PLAYER_GROUPINDEX = -1,
    FILTER_ENEMY_GROUPINDEX = -2,
    FILTER_BONUS_GROUPINDEX = -2,
    
    FILTER_PLAYER_CATEGORYBITS = 0x0002,
    FILTER_PLAYERBULLET_CATEGORYBITS = 0x0004,
    FILTER_ENEMY_CATEGORYBITS = 0x0008,
    FILTER_ENEMYBULLET_CATEGORYBITS = 0x0010,
    FILTER_BONUS_CATEGORYBITS = 0x0016,
    
    FILTER_PLAYER_MASKBITS = FILTER_ENEMY_CATEGORYBITS | FILTER_ENEMYBULLET_CATEGORYBITS | FILTER_BONUS_CATEGORYBITS,
    FILTER_PLAYERBULLET_MASKBITS = FILTER_ENEMY_CATEGORYBITS,
    FILTER_ENEMY_MASKBITS = FILTER_PLAYERBULLET_CATEGORYBITS | FILTER_PLAYER_CATEGORYBITS,
    FILTER_ENEMYBULLET_MASKBITS = FILTER_PLAYER_CATEGORYBITS,
    FILTER_BONUS_MASKBITS = FILTER_PLAYER_CATEGORYBITS,
};

enum PayOff_type
{
    PAYOFF_PASS = 0,
    PAYOFF_DIE
};


#define MENU_COUNT 5

#define PTM_RATIO 32

#define PI 3.14159


#endif
